package c.j.a.d.a.k.a;

/* compiled from: StringBlock */
public class d {
    public int[] a;
    public int[] b;

    public String a(int i) {
        if (i >= 0) {
            int[] iArr = this.a;
            if (iArr != null && i < iArr.length) {
                i = iArr[i];
                int i2 = this.b[i / 4];
                i2 = (i % 4) / 2 == 0 ? i2 & 65535 : i2 >>> 16;
                StringBuilder stringBuilder = new StringBuilder(i2);
                while (i2 != 0) {
                    i += 2;
                    int i3 = this.b[i / 4];
                    stringBuilder.append((char) ((i % 4) / 2 == 0 ? i3 & 65535 : i3 >>> 16));
                    i2--;
                }
                return stringBuilder.toString();
            }
        }
        return null;
    }
}
